/***********************************************************
  > File Name: TestKeyRecommander.cc
  > Author: Huberyee
  > Mail: 923506068@qq.com
  > Created Time: Fri 16 Sep 2022 11:28:48 AM CST
  > Modified Time:Fri 16 Sep 2022 11:28:48 AM CST
 *******************************************************/

#include "../../include/Json.hh"
#include "../../include/CandidateResult.hh"
#include "../../include/KeyRecommander.hh"
#include "../../include/Dictionary.hh"


#include <iostream>

using std::cin;
using std::cout;
using std::endl;

void test0(){
    string word;
        cout<<"请输入查询词：";
        cin>>word;
        Dictionary* pdic =  Dictionary::createInstance();
        pdic->init("../../data");
        KeyRecommander recommander(word);
        recommander.execute(*pdic);
        cout << recommander.response() << endl;
}

int main(){
    test0();
    return 0;
}

